package com.kaifamiao.demo.d0720;

public class Demo09 {

    public static void main(String[] args) {
        char[] one = {'鹅', '鹅', '鹅'};
        char[] two = {'曲', '项', '向', '天', '歌'};

        char[][] yonge = {one, two};

        System.out.println(yonge.length);
        System.out.println(yonge[0].length);
        System.out.println(yonge[1].length);

//        System.out.println(yonge[0][3]);
        System.out.println(yonge[1][3]);

//        char[][] arr = new char[2][3];
//        arr[0] = one;
//        arr[1] = two;
//
//        System.out.println(arr[1][4]);

        int[][] arr = new int[3][3];

        int[] nums = new int[]{1, 2, 3, 4};

        arr[2] = nums;

        System.out.println(arr[2][3]);

        int[][] a = new int[][]{
            {1, 2, 3},
            {2, 3, 4},
            {3, 4, 5, 5}
        };

        int[][] a1 = {{1, 2, 3}, {2, 3, 4}, {3, 4, 5, 5}};

    }
}
